package com.mate.cloud.dataobject;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.mate.cloud.constant.LikedStatusEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@EqualsAndHashCode(callSuper = true)
public class UserLike extends Model<UserLike> {


    //主键id
    private Integer id;


    //被点赞的用户的id
    private String likedUserId;

    //点赞的用户的id
    private String likedPostId;

    //点赞的状态.默认未点赞
    private Integer status = LikedStatusEnum.UN_LIKE.ordinal();

    public UserLike() {
    }

    public UserLike(String likedUserId, String likedPostId, Integer status) {
        this.likedUserId = likedUserId;
        this.likedPostId = likedPostId;
        this.status = status;
    }

}
